/*

Copyright 2009 Nicola Dal Pont

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package com.astoolkit.workflow
{
	import mx.core.IFactory;
	
	[Event(
        name="started",
        type="com.astoolkit.workflow.WorkflowEvent")]
	[Event(
        name="warning",
        type="com.astoolkit.workflow.WorkflowEvent")]
	[Event(
        name="fault",
        type="com.astoolkit.workflow.WorkflowEvent")]
	[Event(
        name="completed",
        type="com.astoolkit.workflow.WorkflowEvent")]
	[Event(
        name="progress",
        type="com.astoolkit.workflow.WorkflowEvent")]
	[Event(
        name="prepare",
        type="com.astoolkit.workflow.WorkflowEvent")]

	[Bindable]
	public interface IWorkflow extends IWorkflowTask, IPipelineTask
	{
		
		function get contextFactory() : IFactory;
		function set contextFactory( inFactory : IFactory ) : void;
		
		function get tasks() : Array;
		function set tasks( inUnits : Array ) : void;
		
		[ArrayElementType("com.astoolkit.workflow.Insert")]
		function set insert( inUnits : Array ) : void;
		
		function get declaredTasks() : Array;
		
		function get flow() : String;
		function set flow( inFlow : String ) : void;

		function get iterate() : Boolean;
		function set iterate( inIterate: Boolean ) : void;
		
		function get feed() : String;
		function set feed( inPolicy: String ) : void;
		
		function get properties() : Array;
		function set properties( inProperties: Array ) : void;
		
		
		
	}
}